//配置多个代理
module.exports = {
  publicPath:'/',
  devServer: {
    proxy: {
      "/api": {
        target: "http://localhost:3000/api",
        changeOrigin: true,
        pathRewrite: {
          "^/api": ""
        }
      },
      "/admin": {
        target: "http://localhost:3000/admin",
        changeOrigin: true,
        pathRewrite: {
          "^/admin": ""
        }
      },
      "/vueShow": {
        target: "http://localhost:3000/vueShow",
        changeOrigin: true,
        pathRewrite: {
          "^/vueShow": ""
        }
      },
    },
  }
} 